/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package OperacoesArquivo;

import java.util.ArrayList;
import pkginterface.Agencia;

/**
 *
 * @author jakson
 */
public class Editar {
    
    public void editar(String cod, ArrayList<Agencia> agen){
        
        for(int i=0;i <= agen.size();i++){
            
             if (agen.get(i).getCodigo().compareTo(cod) == 0) {
                 
                 Telas.EdAgencia eag = new Telas.EdAgencia(agen.get(i));
                 eag.setLocationRelativeTo(eag);
                 eag.setVisible(true);

             }
            
        }
    }
    
}
